package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class SpaceCube extends ProducingBuilding
{

	public SpaceCube()
	{
		super(1, 1);
		super.setBuildingName(SpaceCube.this.getClass().getSimpleName());
		super.setBuildingExplanation("The Space Cube provides a living area for the residents of you're planet.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 100));
		super.resourceCosts.add(new Resource(ResourceType.ELECTRICITY, 5));
		super.resourceCosts.add(new Resource(ResourceType.WATER, 100));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 10));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 50));

		super.addResourceProduceGain(new Resource(ResourceType.HAPPINESS, 1, false));
		super.addResourceProduceGain(new Resource(ResourceType.POPULATIONCAP, 10, false));

		// a la Mitchell
		/**
		 * super.setResourcesProduced(ResourceType.ELECTRICITY); super.setResourcesProduced(ResourceType.HAPPINESS); if
		 * (super.getResourcesProduced() == ResourceType.ELECTRICITY) { super.setProductioncapacity(-1); } if
		 * (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(2); }
		 */

		super.resourceImages = new int[1];
		super.resourceImages[0] = R.drawable.spacecube_0;
		super.setPreviewResourceImageId(R.drawable.spacecube);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
